/*package com.ikkong.shine.controller;

import java.util.HashMap;
import java.util.Map;

import com.ikkong.core.dao.Blade;
import com.ikkong.shine.model.Doctor;
import com.jfinal.core.Controller;
import com.jfinal.plugin.ehcache.CacheKit;

public class IndexController extends Controller {

	public void index(){
		Map<String, Object> indexMap=CacheKit.get("commonCache", "index");
		if(indexMap==null){
			System.err.println("缓存不存在");
			indexMap=new HashMap<String, Object>();
			indexMap.put("doctor",Blade.create(Doctor.class).find("select * from doctor", null));
			CacheKit.put("commonCache", "index", indexMap);
		}else{
			System.err.println("已经缓存");
		}
		setAttr("indexMap", indexMap);
		renderJson();
		render("this is test");
	}
	public static void main(String[] args) {
		IndexController ui=new IndexController();
		ui.index();
	}
}
*/